home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat2 / psigpause.nr < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Psigpause(2)               May. 1, 1992              Psigpause(2)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        Psigpause - suspend process until a signal is received
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        void Psigpause( LONG mask );
  12.  
  13. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  14.        _✓P_✓s_✓i_✓g_✓p_✓a_✓u_✓s_✓e sets a new signal mask and then causes the call-
  15.        ing process to go to sleep until  a  signal  that  is  not
  16.        being  ignored  or masked is received. If a signal handler
  17.        has been established for that signal with the _✓P_✓s_✓i_✓g_✓n_✓a_✓l sys-
  18.        tem  call,  then  the  handler is invoked before _✓P_✓s_✓i_✓g_✓p_✓a_✓u_✓s_✓e
  19.        returns; if the handler does  a  longjmp  to  a  different
  20.        point  in  the program, if it exits the program, or if the
  21.        signal handler was set to SIG_DFL and the  default  action
  22.        for the signal is to terminate the process, then _✓P_✓s_✓i_✓g_✓p_✓a_✓u_✓s_✓e
  23.        will never return.
  24.  
  25.        If _✓P_✓s_✓i_✓g_✓p_✓a_✓u_✓s_✓e does return, then the signal mask is restored
  26.        to  what  it  was prior to the _✓P_✓s_✓i_✓g_✓p_✓a_✓u_✓s_✓e system call, _✓i_✓._✓e_✓.
  27.        the new signal mask specified by _✓m_✓a_✓s_✓k is only temporary.
  28.  
  29. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  30.        _✓P_✓a_✓u_✓s_✓e(2), _✓P_✓s_✓i_✓g_✓b_✓l_✓o_✓c_✓k(2), _✓P_✓s_✓i_✓g_✓n_✓a_✓l(2), _✓P_✓s_✓i_✓g_✓s_✓e_✓t_✓m_✓a_✓s_✓k(2)
  31.  
  32. B✓BU✓UG✓GS✓S
  33.        If a signal handler doesn't return (for  example,  because
  34.        it uses _✓l_✓o_✓n_✓g_✓j_✓m_✓p) then the signal mask is left set to _✓m_✓a_✓s_✓k.
  35.  
  36. A✓AU✓UT✓TH✓HO✓OR✓R
  37.        Alex Kiernan
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Version 0.95         MiNT Programmer's Manual                   1
  65.  
  66.  
  67.